﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ApplicationDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["texchange"] != null && Request.Cookies["texchange"]["logged"] != null && DAO.GlobalSettings.Decrypt(Request.Cookies["texchange"]["logged"]) == "true")
        {
            UserControl uc = (UserControl)this.LoadControl("main/uc_app_det_main.ascx");
            phMain.Controls.Add(uc);
        }
        else
        {
            UserControl uc = (UserControl)this.LoadControl("main/uc_access.ascx");
            phMain.Controls.Add(uc);
        }
    }
}
